<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
	<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />  
    <title>配送商收益</title>
	<meta http-equiv="pragma" content="no-cache">
	<meta http-equiv="cache-control" content="no-cache">
	<meta name="author" content="刘代应">
	<meta name="hashcode" content="-622601867">
	
	<script>window.duteTag="lz";</script>
	<script type="text/javascript" src="/admin/js/dute-1.0.js"></script>
	<script type="text/javascript" src="/admin/js/jquery-1.7.1.min.js"></script>
	
	<script type="text/javascript" src="/admin/js/lazy3q.ui.js"></script>
	<script>
		document.write('<link rel="stylesheet" type="text/css" href="/admin//css/'+($.cookie('theme')||'elegant')+'/lazy3q.ui.css" /> ');
	</script>
	
	<script type="text/javascript" src="/admin/js/jquery-ui-1.10.2.custom.min.js"></script>
	
	<!-- 用户自定义js(懒加载) -->
	<script type="text/javascript" src="/admin/js/define.js"></script>
	<!-- 用户自定义css样式 -->
	<link rel="stylesheet" type="text/css" href="/admin/css/define.css"/>
	<!-- icon font -->
  	<link rel="stylesheet" href="/admin/css/iconfont.css">
	
	
	
	<script type="text/javascript">
		window.basePath="/";
		window.hashcode = "-622601867";
	</script>
		
	<!-- 感谢kindeditor出品的在线HTML编辑控件 -->
	<script type="text/javascript" charset="utf-8" src="/admin/js/kindeditor/kindeditor.js"></script>
		
	<!-- 感谢My97DatePicker出品的时间控件 -->
	<script language="javascript" type="text/javascript" src="/admin/js/My97DatePicker/WdatePicker.js"></script>
	
	<!------------------------VIEW_HTML_HEAD------------------------>
	<!------------------------VIEW_HTML_HEAD------------------------>	
	
</head>
<script>
Page({
  data:{
    
  },
  onLoad: function(options) {
  	var THIS = this;
  	THIS.setData(options);
  	$.getAjax("distributorincome.get.do",options,function(protocol){
  		if(protocol.message){
  			$.toast(protocol.message);
  		}
  		document.title={
  			 "insert":"创建配送商收益"
  			,"inport":"导入配送商收益"
  			,"update":"修改配送商收益"
  			,"detail":"配送商收益详情"
  			
  			
			
  		}[options.edittype];
  		THIS.setData(protocol.data); 
  		
  		/******************VIEW_HTML_SET_DATA******************/
  		/******************VIEW_HTML_SET_DATA******************/
  	});
  }
});
</script>

<script>
window["lzFlashUrl"]=top.lzFlashUrl||"/admin/flash/";
window["uploadUrl"]=top.uploadUrl||"/admin/upload.do";

$(function(){
		 
	$("#distributorincomeForm").form({
		"":function(){}
		,"distributorIncome.id":function(el){
			if($(el).parents("dd:eq(0)").find("b:contains('*')").size()>0){
			}
		}
		,"distributorIncome.merchant":function(el){
			if($(el).parents("dd:eq(0)").find("b:contains('*')").size()>0){
			}
		}
		,"distributorIncome.orderPerson":function(el){
			if($(el).parents("dd:eq(0)").find("b:contains('*')").size()>0){
			}
		}
		,"distributorIncome.distributor":function(el){
			if($(el).parents("dd:eq(0)").find("b:contains('*')").size()>0){
			}
		}
		,"distributorIncome.directOrder":function(el){
			if($(el).parents("dd:eq(0)").find("b:contains('*')").size()>0){
			}
		}
		,"distributorIncome.orderType":function(el){
			if($(el).parents("dd:eq(0)").find("b:contains('*')").size()>0){
				if(jQuery.trim(el.value)=="")
					return "请选择订单类别";
			}
		}
		,"distributorIncome.distriIncome":function(el){
			if($(el).parents("dd:eq(0)").find("b:contains('*')").size()>0){
			}
				var pattern = /^-?(([1-9]\d{0,9})|0)?(\.)?(\d+)?/;
				if(el.value!="" && !pattern.test(el.value))
					return "总收益输入格式错误";
		}
		,"distributorIncome.orderStatus":function(el){
			if($(el).parents("dd:eq(0)").find("b:contains('*')").size()>0){
				if(jQuery.trim(el.value)=="")
					return "请选择收益状态";
			}
		}
		,"distributorIncome.updateTime":function(el){
			if($(el).parents("dd:eq(0)").find("b:contains('*')").size()>0){
				if(jQuery.trim(el.value)=="")
					return "修改时间不能为空";
			}
		}
		,"distributorIncome.addTime":function(el){
			if($(el).parents("dd:eq(0)").find("b:contains('*')").size()>0){
				if(jQuery.trim(el.value)=="")
					return "添加时间不能为空";
			}
		}
		,"distributorIncome.status":function(el){
			if($(el).parents("dd:eq(0)").find("b:contains('*')").size()>0){
				if(jQuery.trim(el.value)=="")
					return "请选择状态";
			}
		}
	},function(){
		/******************************LAZY3Q_FORM_VALIDATE******************************/
		/******************************LAZY3Q_FORM_VALIDATE******************************/
	});		
});
</script>
 
<body style="display:none;">



<!------------------------VIEW_HTML_TOP------------------------>
<!------------------------VIEW_HTML_TOP------------------------>




<form enctype="{{inports!=null?'multipart/form-data':''}}" lz:if="{{edittype=='insert'||edittype=='update'||edittype=='detail'||edittype=='any'||edittype=='inport'}}" class="form editform edittype_{{edittype}}" ref="DistributorIncome" id="distributorincomeForm" name="distributorincomeForm" target="jsoniframe" action="distributorincome.{{edittype=='any'?'update':edittype}}.do" method="post">
	<div class="head"></div>
	<div class="body">
		<div class="content">
			<div lz:if="{{edittype!='detail'}}" class="prompt" style="display:none;">
				温馨提示：请仔细填写配送商收益相关信息，<span class="extrude">"*" 为必填选项。</span>
			</div>
			<br/>
			<lz:block lz:if="{{message}}">
			<br/>
			<center>
				<font color="red"><h4>{{message}}</h4></font>
			</center>
			<br/>
			</lz:block>
			<input type="hidden" value="{{complete}}" name="complete" id="complete" />
			<input type="hidden" value="{{ids}}" name="ids" id="ids" />
			<textarea name="PARAMS" id="PARAMS" style="display:none">{{PARAMS}}</textarea>
			
			
			<lz:block lz:if="{{inports}}">
			  <div class="line"></div>
			  <dl style="width:98%;">
			  	<dt>Excel文件:</dt>
			  	<dd>
			  		<input type="hidden" value="{{inports}}" name="inports" id="inports" />
			  		<input type="hidden" value="{{inport$}}" name="inport$" id="inport$" />
			  		<input name="file" name="file" type="file"/>
			  		<b>*</b>
			  		<div>
						请上传excel文件，表格列依次为：[{{inport$}}]，excel表格第一行为列名称，将不作为上传数据行
					</div>
			  	</dd>
			  </dl>
			  <div class="line"></div>
			</lz:block>
			
			
					
	{{lz.set("id_editable",((edittype=='insert'||(edittype=='inport' && (!lz.idin(inports,"id"))))&&true)||(edittype=='update'&&true)||((edittype=='any')&&(lz.idin(fields,"id"))))}}
	{{lz.set("id_readonly",(edittype=='insert'&&false)||(edittype=='update'&&false)||(edittype=='detail'))}}
				
	
	{{before$id}}
	<dl lz:if="{{id_editable||id_readonly}}" class="id hidden " major  ref="id">
		<dt>编　　号:</dt>
		<dd lz:if="{{id_editable}}" input="hidden">
			<lz:block lz:if="{{distributorIncome$id}}">
				{{distributorIncome$id}}
			</lz:block>
			<lz:block lz:if="{{!distributorIncome$id}}">
			<input type="hidden" value="{{lz.htm(distributorIncome.id)}}" name="distributorIncome.id" id="id" />
	 	 </lz:block>
	 	 
	 	 <em></em> 
	 	 <a class="mui-navigate-right"></a>
		</dd>
		<dd lz:if="{{id_readonly}}">
		 	<div class="state-input narrow">
		 		<textarea class=""  style="display:none;" id="id">{{distributorIncome.id}}</textarea>
		 		<span>
		 	
			 {{lz.html(distributorIncome.id$||distributorIncome.id)}}
	 	 		</span>
	 	 	</div>
		</dd>
	</dl>
	{{after$id}}
					
	{{lz.set("merchant_editable",((edittype=='insert'||(edittype=='inport' && (!lz.idin(inports,"merchant"))))&&true)||(edittype=='update'&&true)||((edittype=='any')&&(lz.idin(fields,"merchant"))))}}
	{{lz.set("merchant_readonly",(edittype=='insert'&&false)||(edittype=='update'&&false)||(edittype=='detail'))}}
				
	
	{{before$merchant}}
	<dl lz:if="{{merchant_editable||merchant_readonly}}" class="merchant  " major  ref="merchant">
		<dt>品 牌 商:</dt>
		<dd lz:if="{{merchant_editable}}" input="query">
			<lz:block lz:if="{{distributorIncome$merchant}}">
				{{distributorIncome$merchant}}
			</lz:block>
			<lz:block lz:if="{{!distributorIncome$merchant}}">
		 			<input title="请输入品牌信息品牌名称进行查询" class="combox narrow" action="/admin/business/merchant.query.do?value={param}" type="text" id="merchant" name="distributorIncome.merchant" text="{{lz.html(distributorIncome.merchant$||distributorIncome.merchant)}}" value="{{lz.htm(distributorIncome.merchant)}}" />
		 			<a class="lookup" href="javascript:void(0);" onclick="if($.trim($('#merchant').val())==''){return;};window.href('/admin/business/merchant.detail.html?key='+$('#merchant').val())"></a>
	 	 </lz:block>
	 	 <b>*</b>
	 	 <em></em> 
	 	 <a class="mui-navigate-right"></a>
		</dd>
		<dd lz:if="{{merchant_readonly}}">
		 	<div class="state-input narrow">
		 		<textarea class=""  style="display:none;" id="merchant">{{distributorIncome.merchant}}</textarea>
		 		<span>
		 	
			 <a href="javascript:void(0);" onclick="window.href('/admin/business/merchant.details.html?key=distributorIncome.merchant}')">
			 {{lz.html(distributorIncome.merchant$||distributorIncome.merchant)}}</a>
	 	 		</span>
	 	 	</div>
		</dd>
	</dl>
	{{after$merchant}}
					
	{{lz.set("nickName_editable",((edittype=='insert'||(edittype=='inport' && (!lz.idin(inports,"nickName"))))&&false)||(edittype=='update'&&false)||((edittype=='any')&&(lz.idin(fields,"nickName"))))}}
	{{lz.set("nickName_readonly",(edittype=='insert'&&false)||(edittype=='update'&&false)||(edittype=='detail'))}}
				
	
	{{before$nickName}}
	<dl lz:if="{{nickName_editable||nickName_readonly}}" class="nickName  " major  ref="nickName">
		<dt>下单人名称:</dt>
		<dd lz:if="{{nickName_editable}}" input="text">
			<lz:block lz:if="{{distributorIncome$nickName}}">
				{{distributorIncome$nickName}}
			</lz:block>
			<lz:block lz:if="{{!distributorIncome$nickName}}">
		 	<input type="text" class="input narrow"  maxlength="32" name="distributorIncome.nickName" id="nickName"  value="{{lz.htm(distributorIncome.nickName)}}"/>
	 	 </lz:block>
	 	 
	 	 <em>请输入配送商收益的下单人名称</em> 
	 	 <a class="mui-navigate-right"></a>
		</dd>
		<dd lz:if="{{nickName_readonly}}">
		 	<div class="state-input narrow">
		 		<textarea class=""  style="display:none;" id="nickName">{{distributorIncome.nickName}}</textarea>
		 		<span>
		 	
			 {{lz.html(distributorIncome.nickName$||distributorIncome.nickName)}}
	 	 		</span>
	 	 	</div>
		</dd>
	</dl>
	{{after$nickName}}
					
	{{lz.set("name_editable",((edittype=='insert'||(edittype=='inport' && (!lz.idin(inports,"name"))))&&false)||(edittype=='update'&&false)||((edittype=='any')&&(lz.idin(fields,"name"))))}}
	{{lz.set("name_readonly",(edittype=='insert'&&false)||(edittype=='update'&&false)||(edittype=='detail'))}}
				
	
	{{before$name}}
	<dl lz:if="{{name_editable||name_readonly}}" class="name  " major  ref="name">
		<dt>配送商名称:</dt>
		<dd lz:if="{{name_editable}}" input="text">
			<lz:block lz:if="{{distributorIncome$name}}">
				{{distributorIncome$name}}
			</lz:block>
			<lz:block lz:if="{{!distributorIncome$name}}">
		 	<input type="text" class="input narrow"  maxlength="32" name="distributorIncome.name" id="name"  value="{{lz.htm(distributorIncome.name)}}"/>
	 	 </lz:block>
	 	 
	 	 <em>请输入配送商收益的配送商名称</em> 
	 	 <a class="mui-navigate-right"></a>
		</dd>
		<dd lz:if="{{name_readonly}}">
		 	<div class="state-input narrow">
		 		<textarea class=""  style="display:none;" id="name">{{distributorIncome.name}}</textarea>
		 		<span>
		 	
			 {{lz.html(distributorIncome.name$||distributorIncome.name)}}
	 	 		</span>
	 	 	</div>
		</dd>
	</dl>
	{{after$name}}
					
	{{lz.set("orderPerson_editable",((edittype=='insert'||(edittype=='inport' && (!lz.idin(inports,"orderPerson"))))&&true)||(edittype=='update'&&true)||((edittype=='any')&&(lz.idin(fields,"orderPerson"))))}}
	{{lz.set("orderPerson_readonly",(edittype=='insert'&&false)||(edittype=='update'&&false)||(edittype=='detail'))}}
				
	
	{{before$orderPerson}}
	<dl lz:if="{{orderPerson_editable||orderPerson_readonly}}" class="orderPerson  " major  ref="orderPerson">
		<dt>下 单 人:</dt>
		<dd lz:if="{{orderPerson_editable}}" input="query">
			<lz:block lz:if="{{distributorIncome$orderPerson}}">
				{{distributorIncome$orderPerson}}
			</lz:block>
			<lz:block lz:if="{{!distributorIncome$orderPerson}}">
		 			<input title="请输入会员信息昵称进行查询" class="combox narrow" action="/admin/users/member.query.do?value={param}" type="text" id="orderPerson" name="distributorIncome.orderPerson" text="{{lz.html(distributorIncome.orderPerson$||distributorIncome.orderPerson)}}" value="{{lz.htm(distributorIncome.orderPerson)}}" />
		 			<a class="lookup" href="javascript:void(0);" onclick="if($.trim($('#orderPerson').val())==''){return;};window.href('/admin/users/member.detail.html?key='+$('#orderPerson').val())"></a>
	 	 </lz:block>
	 	 <b>*</b>
	 	 <em></em> 
	 	 <a class="mui-navigate-right"></a>
		</dd>
		<dd lz:if="{{orderPerson_readonly}}">
		 	<div class="state-input narrow">
		 		<textarea class=""  style="display:none;" id="orderPerson">{{distributorIncome.orderPerson}}</textarea>
		 		<span>
		 	
			 <a href="javascript:void(0);" onclick="window.href('/admin/users/member.details.html?key=distributorIncome.orderPerson}')">
			 {{lz.html(distributorIncome.orderPerson$||distributorIncome.orderPerson)}}</a>
	 	 		</span>
	 	 	</div>
		</dd>
	</dl>
	{{after$orderPerson}}
					
	{{lz.set("distributor_editable",((edittype=='insert'||(edittype=='inport' && (!lz.idin(inports,"distributor"))))&&true)||(edittype=='update'&&true)||((edittype=='any')&&(lz.idin(fields,"distributor"))))}}
	{{lz.set("distributor_readonly",(edittype=='insert'&&false)||(edittype=='update'&&false)||(edittype=='detail'))}}
				
	
	{{before$distributor}}
	<dl lz:if="{{distributor_editable||distributor_readonly}}" class="distributor  " major  ref="distributor">
		<dt>配 送 商:</dt>
		<dd lz:if="{{distributor_editable}}" input="query">
			<lz:block lz:if="{{distributorIncome$distributor}}">
				{{distributorIncome$distributor}}
			</lz:block>
			<lz:block lz:if="{{!distributorIncome$distributor}}">
		 			<input title="请输入配送商信息手机号进行查询" class="combox narrow" action="/admin/delivery/distributor.query.do?value={param}" type="text" id="distributor" name="distributorIncome.distributor" text="{{lz.html(distributorIncome.distributor$||distributorIncome.distributor)}}" value="{{lz.htm(distributorIncome.distributor)}}" />
		 			<a class="lookup" href="javascript:void(0);" onclick="if($.trim($('#distributor').val())==''){return;};window.href('/admin/delivery/distributor.detail.html?key='+$('#distributor').val())"></a>
	 	 </lz:block>
	 	 <b>*</b>
	 	 <em></em> 
	 	 <a class="mui-navigate-right"></a>
		</dd>
		<dd lz:if="{{distributor_readonly}}">
		 	<div class="state-input narrow">
		 		<textarea class=""  style="display:none;" id="distributor">{{distributorIncome.distributor}}</textarea>
		 		<span>
		 	
			 <a href="javascript:void(0);" onclick="window.href('/admin/delivery/distributor.details.html?key=distributorIncome.distributor}')">
			 {{lz.html(distributorIncome.distributor$||distributorIncome.distributor)}}</a>
	 	 		</span>
	 	 	</div>
		</dd>
	</dl>
	{{after$distributor}}
					
	{{lz.set("directOrder_editable",((edittype=='insert'||(edittype=='inport' && (!lz.idin(inports,"directOrder"))))&&true)||(edittype=='update'&&true)||((edittype=='any')&&(lz.idin(fields,"directOrder"))))}}
	{{lz.set("directOrder_readonly",(edittype=='insert'&&false)||(edittype=='update'&&false)||(edittype=='detail'))}}
				
	
	{{before$directOrder}}
	<dl lz:if="{{directOrder_editable||directOrder_readonly}}" class="directOrder  " major  ref="directOrder">
		<dt>所属订单:</dt>
		<dd lz:if="{{directOrder_editable}}" input="query">
			<lz:block lz:if="{{distributorIncome$directOrder}}">
				{{distributorIncome$directOrder}}
			</lz:block>
			<lz:block lz:if="{{!distributorIncome$directOrder}}">
		 			<input title="请输入商品订单订单号进行查询" class="combox narrow" action="/admin/goods/directorder.query.do?value={param}" type="text" id="directOrder" name="distributorIncome.directOrder" text="{{lz.html(distributorIncome.directOrder$||distributorIncome.directOrder)}}" value="{{lz.htm(distributorIncome.directOrder)}}" />
		 			<a class="lookup" href="javascript:void(0);" onclick="if($.trim($('#directOrder').val())==''){return;};window.href('/admin/goods/directorder.detail.html?key='+$('#directOrder').val())"></a>
	 	 </lz:block>
	 	 <b>*</b>
	 	 <em></em> 
	 	 <a class="mui-navigate-right"></a>
		</dd>
		<dd lz:if="{{directOrder_readonly}}">
		 	<div class="state-input narrow">
		 		<textarea class=""  style="display:none;" id="directOrder">{{distributorIncome.directOrder}}</textarea>
		 		<span>
		 	
			 <a href="javascript:void(0);" onclick="window.href('/admin/goods/directorder.details.html?key=distributorIncome.directOrder}')">
			 {{lz.html(distributorIncome.directOrder$||distributorIncome.directOrder)}}</a>
	 	 		</span>
	 	 	</div>
		</dd>
	</dl>
	{{after$directOrder}}
					
	{{lz.set("orderType_editable",((edittype=='insert'||(edittype=='inport' && (!lz.idin(inports,"orderType"))))&&true)||(edittype=='update'&&true)||((edittype=='any')&&(lz.idin(fields,"orderType"))))}}
	{{lz.set("orderType_readonly",(edittype=='insert'&&false)||(edittype=='update'&&false)||(edittype=='detail'))}}
				
	
	{{before$orderType}}
	<dl lz:if="{{orderType_editable||orderType_readonly}}" class="orderType  " major  ref="orderType">
		<dt>订单类别:</dt>
		<dd lz:if="{{orderType_editable}}" input="select">
			<lz:block lz:if="{{distributorIncome$orderType}}">
				{{distributorIncome$orderType}}
			</lz:block>
			<lz:block lz:if="{{!distributorIncome$orderType}}">
		 	<select class="narrow" id="orderType" name="distributorIncome.orderType">
		 		<option value="">请选择</option>
				<option value="1" selected='{{distributorIncome.orderType=="1"?"selected":""}}'>直接购买</option>
				<option value="2" selected='{{distributorIncome.orderType=="2"?"selected":""}}'>余额提货</option>
		 	</select>
	 	 </lz:block>
	 	 <b>*</b>
	 	 <em>请选择配送商收益的订单类别</em> 
	 	 <a class="mui-navigate-right"></a>
		</dd>
		<dd lz:if="{{orderType_readonly}}">
		 	<div class="state-input narrow">
		 		<textarea class=""  style="display:none;" id="orderType">{{distributorIncome.orderType}}</textarea>
		 		<span>
		 	
			 {{lz.html(distributorIncome.orderType$||distributorIncome.orderType)}}
	 	 		</span>
	 	 	</div>
		</dd>
	</dl>
	{{after$orderType}}
					
	{{lz.set("distriIncome_editable",((edittype=='insert'||(edittype=='inport' && (!lz.idin(inports,"distriIncome"))))&&true)||(edittype=='update'&&true)||((edittype=='any')&&(lz.idin(fields,"distriIncome"))))}}
	{{lz.set("distriIncome_readonly",(edittype=='insert'&&false)||(edittype=='update'&&false)||(edittype=='detail'))}}
				
	
	{{before$distriIncome}}
	<dl lz:if="{{distriIncome_editable||distriIncome_readonly}}" class="distriIncome  " major  ref="distriIncome">
		<dt>总 收 益:</dt>
		<dd lz:if="{{distriIncome_editable}}" input="menoy">
			<lz:block lz:if="{{distributorIncome$distriIncome}}">
				{{distributorIncome$distriIncome}}
			</lz:block>
			<lz:block lz:if="{{!distributorIncome$distriIncome}}">
		 	<input onchange="onkeyup()" onkeyup="var reg=/^-?(([1-9]\d{0,9})|0)?(\.)?(\d+)?/;this.value=this.value.match(reg)?this.value.match(reg)[0]:''" type="text" class="input narrow"  maxlength="8" name="distributorIncome.distriIncome" id="distriIncome"  value="{{lz.htm(distributorIncome.distriIncome)}}"/>
	 	 </lz:block>
	 	 <b>*</b>
	 	 <em>请输入配送商收益的总收益</em> 
	 	 <a class="mui-navigate-right"></a>
		</dd>
		<dd lz:if="{{distriIncome_readonly}}">
		 	<div class="state-input narrow">
		 		<textarea class=""  style="display:none;" id="distriIncome">{{distributorIncome.distriIncome}}</textarea>
		 		<span>
		 	
			 {{lz.html(distributorIncome.distriIncome$||distributorIncome.distriIncome)}}
	 	 		</span>
	 	 	</div>
		</dd>
	</dl>
	{{after$distriIncome}}
					
	{{lz.set("orderStatus_editable",((edittype=='insert'||(edittype=='inport' && (!lz.idin(inports,"orderStatus"))))&&true)||(edittype=='update'&&true)||((edittype=='any')&&(lz.idin(fields,"orderStatus"))))}}
	{{lz.set("orderStatus_readonly",(edittype=='insert'&&false)||(edittype=='update'&&false)||(edittype=='detail'))}}
				
	
	{{before$orderStatus}}
	<dl lz:if="{{orderStatus_editable||orderStatus_readonly}}" class="orderStatus  " major  ref="orderStatus">
		<dt>收益状态:</dt>
		<dd lz:if="{{orderStatus_editable}}" input="select">
			<lz:block lz:if="{{distributorIncome$orderStatus}}">
				{{distributorIncome$orderStatus}}
			</lz:block>
			<lz:block lz:if="{{!distributorIncome$orderStatus}}">
		 	<select class="narrow" id="orderStatus" name="distributorIncome.orderStatus">
		 		<option value="">请选择</option>
				<option value="1" selected='{{distributorIncome.orderStatus=="1"?"selected":""}}'>待结算</option>
				<option value="2" selected='{{distributorIncome.orderStatus=="2"?"selected":""}}'>已结算</option>
		 	</select>
	 	 </lz:block>
	 	 <b>*</b>
	 	 <em>请选择配送商收益的收益状态</em> 
	 	 <a class="mui-navigate-right"></a>
		</dd>
		<dd lz:if="{{orderStatus_readonly}}">
		 	<div class="state-input narrow">
		 		<textarea class=""  style="display:none;" id="orderStatus">{{distributorIncome.orderStatus}}</textarea>
		 		<span>
		 	
			 {{lz.html(distributorIncome.orderStatus$||distributorIncome.orderStatus)}}
	 	 		</span>
	 	 	</div>
		</dd>
	</dl>
	{{after$orderStatus}}
					
	{{lz.set("updateTime_editable",((edittype=='insert'||(edittype=='inport' && (!lz.idin(inports,"updateTime"))))&&false)||(edittype=='update'&&false)||((edittype=='any')&&(lz.idin(fields,"updateTime"))))}}
	{{lz.set("updateTime_readonly",(edittype=='insert'&&false)||(edittype=='update'&&false)||(edittype=='detail'))}}
				
	
	{{before$updateTime}}
	<dl lz:if="{{updateTime_editable||updateTime_readonly}}" class="updateTime  " major  ref="updateTime">
		<dt>修改时间:</dt>
		<dd lz:if="{{updateTime_editable}}" input="datetime">
			<lz:block lz:if="{{distributorIncome$updateTime}}">
				{{distributorIncome$updateTime}}
			</lz:block>
			<lz:block lz:if="{{!distributorIncome$updateTime}}">
		 	<input onchange="void(0);" onClick="WdatePicker({dateFmt:'yyyy-MM-dd HH:mm:ss'})" type="text" class="datetime input narrow" maxlength="19" name="distributorIncome.updateTime" id="updateTime"  value="{{distributorIncome.updateTime$}}"/>
	 	 </lz:block>
	 	 <b>*</b>
	 	 <em>请选择配送商收益的修改时间</em> 
	 	 <a class="mui-navigate-right"></a>
		</dd>
		<dd lz:if="{{updateTime_readonly}}">
		 	<div class="state-input narrow">
		 		<textarea class=""  style="display:none;" id="updateTime">{{distributorIncome.updateTime}}</textarea>
		 		<span>
		 	
			 {{lz.html(distributorIncome.updateTime$||distributorIncome.updateTime)}}
	 	 		</span>
	 	 	</div>
		</dd>
	</dl>
	{{after$updateTime}}
					
	{{lz.set("addTime_editable",((edittype=='insert'||(edittype=='inport' && (!lz.idin(inports,"addTime"))))&&false)||(edittype=='update'&&false)||((edittype=='any')&&(lz.idin(fields,"addTime"))))}}
	{{lz.set("addTime_readonly",(edittype=='insert'&&false)||(edittype=='update'&&false)||(edittype=='detail'))}}
				
	
	{{before$addTime}}
	<dl lz:if="{{addTime_editable||addTime_readonly}}" class="addTime  " major  ref="addTime">
		<dt>添加时间:</dt>
		<dd lz:if="{{addTime_editable}}" input="datetime">
			<lz:block lz:if="{{distributorIncome$addTime}}">
				{{distributorIncome$addTime}}
			</lz:block>
			<lz:block lz:if="{{!distributorIncome$addTime}}">
		 	<input onchange="void(0);" onClick="WdatePicker({dateFmt:'yyyy-MM-dd HH:mm:ss'})" type="text" class="datetime input narrow" maxlength="19" name="distributorIncome.addTime" id="addTime"  value="{{distributorIncome.addTime$}}"/>
	 	 </lz:block>
	 	 <b>*</b>
	 	 <em>请选择配送商收益的添加时间</em> 
	 	 <a class="mui-navigate-right"></a>
		</dd>
		<dd lz:if="{{addTime_readonly}}">
		 	<div class="state-input narrow">
		 		<textarea class=""  style="display:none;" id="addTime">{{distributorIncome.addTime}}</textarea>
		 		<span>
		 	
			 {{lz.html(distributorIncome.addTime$||distributorIncome.addTime)}}
	 	 		</span>
	 	 	</div>
		</dd>
	</dl>
	{{after$addTime}}
					
	{{lz.set("status_editable",((edittype=='insert'||(edittype=='inport' && (!lz.idin(inports,"status"))))&&false)||(edittype=='update'&&true)||((edittype=='any')&&(lz.idin(fields,"status"))))}}
	{{lz.set("status_readonly",(edittype=='insert'&&false)||(edittype=='update'&&false)||(edittype=='detail'))}}
				
	
	{{before$status}}
	<dl lz:if="{{status_editable||status_readonly}}" class="status  " major  ref="status">
		<dt>状　　态:</dt>
		<dd lz:if="{{status_editable}}" input="select">
			<lz:block lz:if="{{distributorIncome$status}}">
				{{distributorIncome$status}}
			</lz:block>
			<lz:block lz:if="{{!distributorIncome$status}}">
		 	<select class="narrow" id="status" name="distributorIncome.status">
		 		<option value="">请选择</option>
				<option value="1" selected='{{distributorIncome.status=="1"?"selected":""}}'>正常</option>
				<option value="0" selected='{{distributorIncome.status=="0"?"selected":""}}'>无效</option>
		 	</select>
	 	 </lz:block>
	 	 <b>*</b>
	 	 <em>请选择配送商收益的状态</em> 
	 	 <a class="mui-navigate-right"></a>
		</dd>
		<dd lz:if="{{status_readonly}}">
		 	<div class="state-input narrow">
		 		<textarea class=""  style="display:none;" id="status">{{distributorIncome.status}}</textarea>
		 		<span>
		 	
			 {{lz.html(distributorIncome.status$||distributorIncome.status)}}
	 	 		</span>
	 	 	</div>
		</dd>
	</dl>
	{{after$status}}
			
			
			
			<div class="line">
				<center lz:if="{{edittype=='insert'}}">
					<a onclick="$('.ribs').show();window.fireResize();$('.ribs-handle').toggle();" href="javascript:void(0);" class="state-content ribs-handle" style="display:inline;padding: 0px 15px;">点击展开更多编辑项</a>
					<a onclick="$('.ribs').hide();window.fireResize();$('.ribs-handle').toggle();" href="javascript:void(0);" class="state-content ribs-handle" style="display:none;padding: 0px 15px;">点击收起更多编辑项</a>
				</center>
			</div>
			<center class="buttons">
				<input type="hidden" value="{{distributorIncome.id}}" name="distributorIncome.id" id="id" />
			
			<lz:block lz:if="{{edittype=='insert'||edittype=='update'||edittype=='any'||edittype=='inport'}}">
				<button class="button" type="submit">
					&nbsp;<img class="iconA" align="absmiddle" width="20" src="/admin/images/icons/Badge-tick.png"/>
					<span class="iconB iconfont icon-weibiaoti8"></span>
					保存&nbsp;&nbsp;</button>
				<button title="不保存数据,关闭窗口,不刷新原列表" class="button" onclick="cancel();" type="button">
					&nbsp;<img class="iconA" align="absmiddle" width="20" src="/admin/images/icons/Badge-multiply.png"/>
					<span class="iconB iconfont icon-icon11"></span>
					关闭&nbsp;&nbsp;</button>
			</lz:block>
			
			<lz:block lz:if="{{edittype=='detail'}}">
				
				
				
				
				
				
				
				
				<button lz:if="{{canEdit}}" type="button" class="button" onclick='window.location.href="/admin/delivery/distributorincome.edit.html?edittype=update&id={{distributorIncome.id}}"'>
					&nbsp;<img class="iconA" align="absmiddle" width="20" src="/admin/images/icons/Badge-tick.png"/>
					<span class="iconB iconfont icon-weibiaoti8"></span>
					修改&nbsp;&nbsp;</button>
				
				
				<button title="不保存数据,关闭窗口,不刷新原列表" class="button" onclick="cancel();" type="button">
					&nbsp;<img class="iconA" align="absmiddle" width="20" src="/admin/images/icons/Badge-multiply.png"/>
					<span class="iconB iconfont icon-icon11"></span>
					关闭&nbsp;&nbsp;</button>
			</lz:block>
					
			</center>
			<br/>

		</div>
	</div>
	<div class="foot"></div>		
</form>





 


<!------------------------VIEW_HTML_BOTTOM------------------------>
<!------------------------VIEW_HTML_BOTTOM------------------------>


</body>

<!------------------------VIEW_HTML_FOOTER------------------------>
<!------------------------VIEW_HTML_FOOTER------------------------>
<script>
	
	$(function(){
		if(parent.setit){
			parent.setit("/admin/delivery/distributorincome.edit.html",document.title,"/admin//images/icons/display.png");
		}
	});
	
	function cancel(){
		if(parent.closeHref){
			parent.closeHref("/admin/delivery/distributorincome.edit.html");
		}else{
			$.closeModalDialog();
		}
	}



</script>
</html>